<!DOCTYPE html>
<html>
    <head>
        <meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
        <title></title>
    </head>
    <body>
        <?php
            session_start();           
            echo '<h1>Favorites</h1>';  
            
            //session message from login form
            if (isset($_SESSION['username']))
            {    
                //echo $_SESSION['messageWelcome'];
                $sessionName = $_SESSION['username']; 
            }
        ?>
        
        <a href="favoritesTable.php">Show Favorites Table</a><br>
        <a href="newEntry.php">Add New Entry</a><br>
        <a href="sorting.php">Sort Elements</a><br>
        <br><br><br><br><br><br>
        <a href="logout.php"><i>Logout</i></a>
        
        <?
            if (isset($_POST['submit']))
            {    
                echo $_SESSION['messageWelcome']; 
            }
            else 
            {

            }
        ?>
    </body>
</html>
